<?php include 'sqls.php' ?>
<script type="text/javascript">
<!--
function MarcaTodos() {
	for (var i = 0; i < document.forms[0].elements.length; i++) {
		if(document.forms[0].elements[i].name == 'arrId[]'){
			document.forms[0].elements[i].checked = !(document.forms[0].elements[i].checked);
		}
	}
}
//-->
</script>
<script type="text/javascript"> 
$().ready(function() {
	var container = $('div.container');
	// validate the form when it is submitted
	var validator = $("#form").validate({
		errorContainer: container,
		errorLabelContainer: $("ol", container),
		wrapper: 'li',
		meta: "validate"
	});
	
	$(".cancel").click(function() {
		validator.resetForm();
	});
});
</script> 
<form action="<?php $_SERVER['PHP_SELF']; ?>" id="form" class="form" method="post">
<div id='conteudo'>
<?php
if (isset($_GET['acao']) == "editar" || isset($_GET['acao']) == "cadastrar" ) {
	include 'form.php';
} else {
	include 'secoes.php';
}
?>
<br />
<br />
</div>
</form>